package h_factory.d_abstract;

/**
 * Created by wug on 2016/7/13 0013.
 */
public class HeroFactoryYi implements HeroFactory {
    @Override
    public Skin makeSkin(int type) {
        return new SkinStarWar();
    }

    @Override
    public Weapon makeWeapon(int type) {
        if (type == 2) {
            return new WeaponHeavenSword();
        }
        return new WeaponLightSword();
    }
}
